package com.api.syh56.shengyunhui.entity.adminEntity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.*;
import lombok.experimental.FieldDefaults;

import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("waybill_route")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WaybillRoute {
    @Column(name = "id")
    Long id;

    /**
     * 公司名称
     */
    @Column(name = "company",comment = "公司名称")
    String company;

    /**
     * 报价状态
     */
    @Column(name = "quote_status",comment = "报价状态")
    Short quoteStatus;

    /**
     * 专线用户id
     */
    @Column(name = "uid",comment = "专线用户id")
    Long uid;

    /**
     * 专线用户手机号
     */
    @Column(name = "telephone",comment = "专线用户手机号")
    String telephone;

    /**
     * 运单id
     */
    @Column(name = "wid",comment = "运单id")
    Long wid;

    /**
     * 联系状态  0 未联系 1 已经联系
     */
    @Column(name = "contact_status",comment = "联系状态  0 未联系 1 已经联系")
    Short contactStatus;

    /**
     * 管理员姓名
     */
    @Column(name = "admin_username",comment = "管理员姓名")
    String adminUsername;

    @Column(name = "creation_time")
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime creationTime;

    /**
     * 更新时间
     */
    @Column(name = "last_modification_time")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastModificationTime;
}
